# file: multicore_test02.py

import machine
import _thread
import utime

def thread_1():
    while True:
        print("thread_1")
        utime.sleep_ms(1000)

def thread_2():
    while True:
        print("thread_2")
        utime.sleep_ms(1000)

_thread.start_new_thread(thread_1, ( ))
_thread.start_new_thread(thread_2, ( ))

while True:
    print("main")
    utime.sleep_ms(1000)